#include<bits/stdc++.h>

#include<jsoncpp/json/json.h>
using namespace std;
int main()
{
    Json::Value root;
    root["x"] = 100;
    root["y"] = 200;
    root["desc"] = "this is a + oper";
    root["op"] = '+';
    

    Json::FastWriter w;
    //Json::StyledWriter w;
    std::string res = w.write(root);

    Json::Value v;
    Json::Reader r;
    r.parse(res,v);
    int x = v["x"].asInt();
    int y = v["y"].asInt();
    char op = v["op"].asInt();
    std::string desc = v["desc"].asString();
    cout << x << endl;
    cout << y << endl;
    cout << op << endl;
    cout << desc << endl;

    return 0;
}